package com.zez.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author zez
 * @since 2025-01-14
 */

@Data
@Getter
@Setter
public class Book implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "book_id", type = IdType.AUTO)
    private Integer bookid;

    private String bookname;

    private String type;

    private Double price;

    private Integer authorid;
    @TableField(exist = false)
    private String authorname;

    @TableLogic
    private Integer deleted;

    @TableField(fill= FieldFill.INSERT)
    private LocalDateTime createtime;
    @TableField(fill= FieldFill.INSERT_UPDATE)
    private LocalDateTime updatetime;
}
